package org.pearl.springbootsecurity.demo.MP.data;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by TD on 2021/10/25
 * 数据权限类型
 */
@Getter
@AllArgsConstructor
public enum DataScopeType {

    ALL(1, "所有部门"),

    OWN_AND_CHILD_DEPT(2, "本部门及子部门"),

    OWN_ONLY_DEPT(3, "仅本部门"),

    OWN_ONLY(4, "仅创建用户自己"),

    DB_DYNAMIC(5, "数据库动态配置");

    int type;

    String desc;
}

